package com.yunwaikeji.gy_tool_library.utils;

import java.util.Random;

public class GYRandomUtils {
    //获取随机数
    public static int getRandom(int start, int end) {
        Random random = new Random();
        return random.nextInt(end - start) + start;
    }

    //获取随机数
    public static int getRandom(int all) {
        Random random = new Random();
        return random.nextInt(all);
    }

    //获取随机数
    public static int getRandom() {
        Random random = new Random();
        return random.nextInt();
    }
}
